package org.tinygroup.earthworm2.test;

import org.tinygroup.earthworm2.EarthWorm2;
import org.tinygroup.logger.LogLevel;
import org.tinygroup.logger.Logger;
import org.tinygroup.logger.LoggerFactory;

public class Simple {
	private static Logger LOGGER = LoggerFactory.getLogger(Simple.class);
	public static void main(String[] args) {
		LOGGER.logMessage(LogLevel.INFO, "追踪之前");
		EarthWorm2.startTrace("", "default");
		LOGGER.logMessage(LogLevel.INFO, "刚刚开始追做");
		EarthWorm2.startRpc("hello", "");
		LOGGER.logMessage(LogLevel.INFO, "刚刚开起了远程");
		EarthWorm2.rpcClientSend();
		LOGGER.logMessage(LogLevel.INFO, "刚才发送了消息");
		EarthWorm2.rpcClientRecv();
		LOGGER.logMessage(LogLevel.INFO, "刚才收到了消息");
		EarthWorm2.startLocal("hhhh", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才开起了本地");
		EarthWorm2.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了本地");
		EarthWorm2.startLocal("hhhh1", "");
		LOGGER.logMessage(LogLevel.INFO, "刚才you开起了本地");
		EarthWorm2.endLocal();
		LOGGER.logMessage(LogLevel.INFO, "刚才you结束了本地");
		EarthWorm2.endTrace();
		LOGGER.logMessage(LogLevel.INFO, "刚才结束了追踪");
	}
}
